<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vue 原理学习</title>
  </head>
  <script src="./js/dep.js"></script>
  <script src="./js/watcher.js"></script>
  <script src="./js/compiler.js"></script>
  <script src="./js/observer.js"></script>
  <script src="./js/mini-vue.js"></script>
  <body>
    <div id="app">
      <div>{{ msg }}</div>
      <h2 v-text="msg"></h2>
      <input type="text" v-model="msg" />
    </div>
  </body>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        msg: 'hello vue',
        count: 7,
        person: {
          name: 'zhang san',
        },
      },
    })
    // console.log(vm.msg, 'vmsssss')
    // vm.msg = { name: 'ppp' }
  </script>
</html>
